import { Schema } from 'mongoose';
import moment from 'moment/moment';

export const articleSchema = new Schema({
  title: {
    type: String,
    required: true,
  },
  author_name: {
    type: String,
    required: true,
  },
  creat_time: {
    type: Date,
    default: new Date(),
    required: false,
  },
  update_time: {
    type: String,
    default: null,
    required: false,
  },
});
